package com.github.niefy.modules.third.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.niefy.modules.third.entity.ThirdUser;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

@Validated
public interface ThirdUserService extends IService<ThirdUser> {

    default boolean saveOrUpdateWithValid(@Valid ThirdUser entity){
        return saveOrUpdate(entity);
    };
}
